package cn.pengyinrui.department.system.user.domain;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.ToString;
// 手动修改路径
import cn.pengyinrui.department.base.domain.BaseDomain;

/**
 * <p>
 * 
 * </p>
 *
 * @author peng.yr
 * @since 2023-01-30
 */
@Data
@ToString
public class User extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private String username;
    private String email;
    private String phone;
    /**
     * 盐值
     */
    private String salt;
    /**
     * 密码，md5加密加盐
     */
    private String password;
    /**
     * 已注册 已激活 禁用
     */
    private Integer state;
    private Integer age;
    private Date createtime;
    private String headImg;
    private Long logininfoId;


    public String getUsername() {
        return username;
    }

    public User setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public User setEmail(String email) {
        this.email = email;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public User setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getSalt() {
        return salt;
    }

    public User setSalt(String salt) {
        this.salt = salt;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    public Integer getState() {
        return state;
    }

    public User setState(Integer state) {
        this.state = state;
        return this;
    }

    public Integer getAge() {
        return age;
    }

    public User setAge(Integer age) {
        this.age = age;
        return this;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public User setCreatetime(Date createtime) {
        this.createtime = createtime;
        return this;
    }

    public String getHeadImg() {
        return headImg;
    }

    public User setHeadImg(String headImg) {
        this.headImg = headImg;
        return this;
    }

    public Long getLogininfoId() {
        return logininfoId;
    }

    public User setLogininfoId(Long logininfoId) {
        this.logininfoId = logininfoId;
        return this;
    }

}
